<template>
    <div class="app-container pushstate">
        <van-nav-bar title="策略选择"  left-arrow @click-left="$router.back()" />
        <div class="pushstate-container">
            <strategy-component @on-change="handleSelectStrategy"></strategy-component>
        </div>
    </div>
</template>

<script>
import StrategyComponent from '@/components/strategy/index';
export default {
    name: 'PushState',
    components: {
        StrategyComponent
    },
    data() {
        return {
            selectStrategy: {
                type: 0,
                strategy: ['ema'],
            },
        }
    },
    methods: {
        // 选择的策略
        handleSelectStrategy(item) {
            console.log('=======handleSelectStrategy', item);
            this.selectStrategy = item;
        } 
    }
};
</script>
<style lang="less" scoped>
// .pushstate-container {
//     padding: 10px;
// }
</style>
